package cn.tedu.tmall.admin.content.dao.serch.impl;

import cn.tedu.tmall.admin.content.dao.serch.ArticleElasticsearchRepository;
import cn.tedu.tmall.admin.content.dao.serch.IArticleSerchRepository;
import cn.tedu.tmall.common.pojo.po.ArticleSerchPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ArticleSerchRepository implements IArticleSerchRepository {
    @Autowired
    private ArticleElasticsearchRepository articleElasticsearchRepository;
    @Override
    public void saveAll(List<ArticleSerchPO> articleList) {
        articleElasticsearchRepository.saveAll(articleList);
    }

    @Override
    public void deleteAll() {
        articleElasticsearchRepository.deleteAll();
    }
}
